﻿<UserControl x:Class="XWord.GUI.Views.TranslateWordView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="300">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="0.45*" />
            <RowDefinition Height="0.1*" MinHeight="25" />
            <RowDefinition Height="0.45*" />
        </Grid.RowDefinitions>
        <ScrollViewer VerticalScrollBarVisibility="Auto" Grid.Row="0">
            <TextBox AcceptsReturn="True" x:Name="originText" TextWrapping="Wrap" />
        </ScrollViewer>
        <StackPanel Grid.Row="1" VerticalAlignment="Center" Orientation="Horizontal">
            <!--<shared:RadioButtonList Orientation="Horizontal"  SelectedIndex="0"
                                    x:Name="transType" BulletMargin="0,-1,0,0" BulletVerticalAlignment="Top">
                <ListBoxItem Content="英译中"/>
                <ListBoxItem Content="中译英"/>
            </shared:RadioButtonList>-->
            
            <Button Content="翻译" Click="Button_Click"></Button>
            <Label Content="每一段字数不得超过300字"/>
        </StackPanel>
        <ScrollViewer VerticalScrollBarVisibility="Auto" Grid.Row="2">
            <TextBox AcceptsReturn="True" x:Name="translateText" TextWrapping="Wrap" />
        </ScrollViewer>
    </Grid>
</UserControl>
